Skip to content

Conversation

@tembo
Copy link
Contributor

@tembo tembo bot commented Jan 9, 2026

Summary

Update Playwright file I/O documentation with:

  • New download behavior using behavior: 'default'
  • Simplified file upload examples using setInputFiles()
  • Removed manual file upload to browser VM
  • Updated download directory to use ~/Downloads

Description

This PR updates the file I/O documentation to:

  • Recommend behavior: 'default' for browser downloads
  • Simplify file upload examples using Playwright's native setInputFiles() method
  • Remove complex file transfer steps
  • Use standard ~/Downloads directory for downloads

Changes include:

  • Updated code examples in TypeScript and Python
  • Added note about default download behavior
  • Demonstrated file upload with local file and buffer

Implementation Checklist

  • Updated file I/O documentation
  • Verify examples work with current Playwright version

Testing

  • Verified examples run correctly
  • Confirmed mintlify dev works

Related Issue

Fixes KERNEL-793


Want tembo to make any changes? Add a review or comment with @tembo and i'll get back to work!

tembo.io linear.app app.tembo.io


Note

Updates File I/O docs focusing on Playwright downloads and uploads.

  • Recommend Browser.setDownloadBehavior with behavior: 'default'; downloads go to ~/Downloads (added note) and examples poll listFiles before reading
  • Revise TS/Python download examples: remove custom downloadPath, use home Downloads, add CDP listeners, wait/poll, and save locally
  • Simplify uploads: show setInputFiles() with local path or buffer; remove manual file transfer to browser VM; add form submit and result verification
  • Minor cleanup of imports and comments across examples

Written by Cursor Bugbot for commit 48218b0. This will update automatically on new commits. Configure here.

@tembo tembo bot added the tembo Pull request created by Tembo label Jan 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

tembo Pull request created by Tembo

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant